#include "yuvspec.h"

YUVSpec::YUVSpec(int width, int height, int fps, AVPixelFormat format):
        width(width),height(height),fps(fps),format(format)
{

    imageSize = av_image_get_buffer_size(format,width,height,1);
}

int YUVSpec::getImageSize() const
{

    return imageSize;
}

int YUVSpec::getWidth() const
{

    return width;
}

int YUVSpec::getHeight() const
{

    return height;
}

int YUVSpec::getFps() const
{

    return fps;
}



AVPixelFormat YUVSpec::getFormat() const
{

    return format;
}
